<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Plugin\DirectUploadController;

use App\Http\Controllers\Divide\DivideSystemController;
use App\Http\Controllers\Divide\CategoryController;
use App\Http\Controllers\User\UserController;
use App\Http\Controllers\Department\DepartmentController;
use App\Http\Controllers\Area\CityController;
use App\Http\Controllers\Vip\VipController;
use App\Http\Controllers\Commission\CommissionController;
use App\Http\Controllers\Bind\BindProductController;
use App\Http\Controllers\Wechat\WechatController;
use App\Http\Controllers\WorkFlow\WorkFlowController;
use App\Http\Controllers\WorkFlow\ProcessStepController;
// 分佣接口调用

//本地上传
Route::prefix('local_upload')->group(function(){
    Route::post('upload_file', [\App\Http\Controllers\Plugin\LocalUploadFileController::class,'upload']);
    Route::post('delete_file', [\App\Http\Controllers\Plugin\LocalUploadFileController::class,'deleteFile']);
    Route::post('download', [\App\Http\Controllers\Plugin\LocalUploadFileController::class,'download']);
});
//图片直传
Route::prefix('direct_upload')->group(function(){
    Route::post('upload_app_token', [DirectUploadController::class,'getAppToken']);
    Route::post('upload_web_token', [DirectUploadController::class,'getWebToken']);
    Route::any('call_back', [DirectUploadController::class,'callback']);
});
//oss图片上传
Route::prefix('upload')->group(function(){
    Route::post('single',[\App\Http\Controllers\Plugin\UploadImageController::class,'upload']);
    Route::post('multi',[\App\Http\Controllers\Plugin\UploadImageController::class,'multiImgs']);
//    Route::post('local',[UploadImageController::class,'upload']);
});
//微信
Route::prefix('mini_programe')->group(function(){
    Route::post('get_openid', [WechatController::class,'getOpenid']);
});
//微信
Route::prefix('workflow')->group(function(){
    Route::post('list', [WorkFlowController::class,'getList']);
    Route::post('create', [WorkFlowController::class,'create']);
    Route::post('save', [WorkFlowController::class,'save']);
    Route::post('process_step/save', [ProcessStepController::class,'save']);
});




